﻿using Microsoft.EntityFrameworkCore;
using Step4.Unit7.Model.Entities;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Step4.Unit7.Service
{
    public class StepDbContext:DbContext // 继承：Microsoft.EntityFrameworkCore.DbContext 类
    {
        public StepDbContext(DbContextOptions<StepDbContext> options):base(options)
        { 
                        
        }

        // 把数据表注册为DbContext的属性
        public virtual DbSet<Account> Accounts { get; set; }

        public virtual DbSet<Debtor> Debtors { get; set; }
    }
}
